package com.ruoyi.student.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.student.mapper.StudentClassCourseMapper;
import com.ruoyi.student.domain.StudentClassCourse;
import com.ruoyi.student.service.IStudentClassCourseService;

/**
 * 班级课程Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-23
 */
@Service
public class StudentClassCourseServiceImpl implements IStudentClassCourseService 
{
    @Autowired
    private StudentClassCourseMapper studentClassCourseMapper;

    /**
     * 查询班级课程
     * 
     * @param classId 班级课程主键
     * @return 班级课程
     */
    @Override
    public StudentClassCourse selectStudentClassCourseByClassId(String classId)
    {
        return studentClassCourseMapper.selectStudentClassCourseByClassId(classId);
    }

    /**
     * 查询班级课程列表
     * 
     * @param studentClassCourse 班级课程
     * @return 班级课程
     */
    @Override
    public List<StudentClassCourse> selectStudentClassCourseList(StudentClassCourse studentClassCourse)
    {
        return studentClassCourseMapper.selectStudentClassCourseList(studentClassCourse);
    }

    /**
     * 新增班级课程
     * 
     * @param studentClassCourse 班级课程
     * @return 结果
     */
    @Override
    public int insertStudentClassCourse(StudentClassCourse studentClassCourse)
    {
        return studentClassCourseMapper.insertStudentClassCourse(studentClassCourse);
    }

    /**
     * 修改班级课程
     * 
     * @param studentClassCourse 班级课程
     * @return 结果
     */
    @Override
    public int updateStudentClassCourse(StudentClassCourse studentClassCourse)
    {
        return studentClassCourseMapper.updateStudentClassCourse(studentClassCourse);
    }

    /**
     * 批量删除班级课程
     * 
     * @param classIds 需要删除的班级课程主键
     * @return 结果
     */
    @Override
    public int deleteStudentClassCourseByClassIds(String[] classIds)
    {
        return studentClassCourseMapper.deleteStudentClassCourseByClassIds(classIds);
    }

    /**
     * 删除班级课程信息
     * 
     * @param classId 班级课程主键
     * @return 结果
     */
    @Override
    public int deleteStudentClassCourseByClassId(String classId)
    {
        return studentClassCourseMapper.deleteStudentClassCourseByClassId(classId);
    }
}
